﻿<%@ Page Title="合同列表" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
	CodeBehind="ContractOrders.aspx.cs" Inherits="HZ.Supervise.Web.Hospital.ContractOrders" %>

<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<link href="../lib/ZheZao/thickbox.css" rel="stylesheet" type="text/css" />
	<script src="../lib/ZheZao/thickbox.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<div id="tabnav">
		<ul>
			<li class="active"><a href="javascript:void(0)">合同列表</a></li>
		</ul>
	</div>
	<div id="tabcontent">
		<table class="querylist">
			<tr>
				<td>
					<table class="querylist">
						<tr>
							<td align="right">
								<asp:Label ID="lblOrderName" runat="server" Text="合同名称："></asp:Label>
							</td>
							<td align="left">
								<asp:TextBox ID="txtOrderName" runat="server"></asp:TextBox>
							</td>
							<td align="right">
								<asp:Label ID="lblHospitalName" runat="server" Text="医院名称："></asp:Label>
							</td>
							<td align="left">
								<asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox>
							</td>
							<td align="right">
								<asp:Label ID="lblPlanTime" runat="server" Text="签订时间："></asp:Label>
							</td>
							<td align="left">
								<asp:TextBox ID="txtTimeFrom" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
									Width="62px"></asp:TextBox>
								-
                                <asp:TextBox ID="txtTimeTo" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
									Width="62px"></asp:TextBox>
							</td>
						</tr>
						<tr>
							<td align="right">所在地区：
							</td>
							<td align="left">
								<uc3:AreaControl ID="ddlArea" runat="server" />
							</td>
						</tr>
					</table>
				</td>
				<td>
					<asp:Button ID="btnButton" runat="server" Text="查 询" OnClick="btnButton_Click" CssClass="btn" />
				</td>
			</tr>
		</table>
	</div>
	<asp:GridView ID="gvwOrder" runat="server" AutoGenerateColumns="False" EmptyDataText="暂无符合条件的数据!"
		CssClass="mainlist" DataKeyNames="OrderID,HospitalID">
		<Columns>
			<asp:TemplateField HeaderText="序号">
				<ItemTemplate>
					<%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %>
				</ItemTemplate>
				<HeaderStyle Width="30px" />
			</asp:TemplateField>
			<asp:TemplateField HeaderText="合同名称">
				<ItemTemplate>
					<a href='ContractUpdate2.aspx?orderID=<%# Eval("OrderID") %>'>
						<asp:Label runat="server" ID="lblOrderName" Text='<%#(DataBinder.Eval(Container,"DataItem.OrderName")) %>'
							ToolTip="点击进入查看并维护采合同详细信息"></asp:Label></a>
				</ItemTemplate>
			</asp:TemplateField>
			<asp:BoundField DataField="StartTime" HeaderText="签订时间" ReadOnly="true" />
			<asp:BoundField DataField="HospitalName" HeaderText="医院名称" ReadOnly="true" />
			<asp:BoundField DataField="TotalAmount" HeaderText="合同总额" ReadOnly="true" />
			<asp:BoundField DataField="SubmiTime" HeaderText="提交时间" ReadOnly="true" />
			<asp:TemplateField HeaderText="合同查看" HeaderStyle-Width="80px">
				<ItemTemplate>
					<a href='ContractZip2.aspx?orderID=<%# Eval("OrderID") %>&keepThis=true&TB_iframe=true&height=400&width=1000'
						class="thickbox">
						<%#Eval("IsUp")%></a>
				</ItemTemplate>
			</asp:TemplateField>
		</Columns>
	</asp:GridView>
	<div class="page">
		<webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
		</webdiyer:AspNetPager>
	</div>
</asp:Content>
